I'm integrating the social login using apple sdk on a big brazilian e-commerce.Actually our login flow require the apple id popup solution to prevent user get out site, actually Im using this configurations on init:Init code:window.AppleID.auth.init({
clientId: 'example.client.id',
redirectURI: 'https://www.oursite.com.br/login/callback',
usePopup: true,
})The app url is: https://www.oursite.com.br/loginobs: url is an example.Login code:try {
const data = await AppleID.auth.signIn()
return data //doest receive
} catch (error) {
console.error({error})
}THE PROBLEM IS:When popup is opened and appleid and password is correctly submit, the popup does`t retuns the promise.When cancel button is trigger the popup does`t close and error is not calledJust when popup is closed by navigation button the error is calledI need help, whats the problems on implementation?
Selecting any option will automatically load the page